var map = new BMap.Map("allmap");
	var gc = new BMap.Geocoder();
	var geolocation = new BMap.Geolocation();
	geolocation.getCurrentPosition(function(r) {
		if(this.getStatus() == BMAP_STATUS_SUCCESS) {
			var point = new BMap.Point(r.point.lng, r.point.lat);
			gc.getLocation(point, function(rs) {
				var addComp = rs.addressComponents;
				var dizhi =addComp.city  + addComp.district  + addComp.street  + addComp.streetNumber;
				$("#adress").html(dizhi);
			});
//			console.log('您的位置：' + r.point.lng + ',' + r.point.lat);
		} else {
			console.log('failed' + this.getStatus());
		}
	}, { enableHighAccuracy: true });